package com.xzzz.common.dblog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan(basePackages = {"com.xzzz.common.dblog.mappers"})
public class DBLogConfiguration {

    @Bean
    public LogService logService() {
        return new LogService();
    }

    @Bean
    public LogQueue logQueue(LogService logService) {
        return new LogQueue(logService);
    }
}
